<div class="eject_con">
    <div id="warning" class="alert alert-error"></div>
    <form method="post" action="{:url('Sellerdeliver/batch_send')}" id="plate_form" class='batch_send_form'>
        <input type="hidden" name="order_id" value="{$Request.param.order_id}" />
        {foreach name='order_list' item="val"}
        <dl>
            <dd>{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}{$val.order_sn}</dd>
            <dd>
                <p>
                    <label>{$Think.lang.store_deliver_confirm_daddress}</label>
                </p>
                <p>
                    <select name="send[{$val.order_id}][daddress_id]">
                        <option>{$Think.lang.ds_please_choose}</option>
                        {notempty name="daddress_list"}
                       {foreach name="daddress_list" key="k" item="daddress_info"}
                        <option value="{$daddress_info.daddress_id}" {if $k==0}selected{/if}>{$daddress_info.seller_name}&nbsp;{$daddress_info.daddress_telphone}&nbsp;{$daddress_info.area_info}&nbsp;{$daddress_info.daddress_detail}</option>
                       {/foreach}
                       {/notempty}
                    </select>
                </p>
                <p>
                    <label>{$Think.lang.store_deliver_express_select}</label>
                </p>
                <p>
                    <select name="send[{$val.order_id}][express_id]">
                        <option>{$Think.lang.ds_please_choose}</option>
                        {notempty name="val.my_express_list"}
                       {foreach name="val.my_express_list" key="k" item="v"}
                        <option value="{$v.express_id}" {if $k==0}selected{/if}>{$v.express_name}</option>
                       {/foreach}
                       {/notempty}
                    </select>
                    <input name="send[{$val.order_id}][shipping_code]" type="text" class="text w200 tip-r" />
                </p>
            </dd>
        </dl>
        {/foreach}
        <div class="bottom">
            <input type="submit" class="submit" value="{$Think.lang.ds_submit}"/>
        </div>
    </form>
</div>
<style>
    .batch_send_form{padding-left:20px;max-height: 500px;overflow: hidden;overflow-y: auto !important}
    .batch_send_form p input{vertical-align: middle;}
</style>
<script>
    $(function(){
        $('#plate_form').submit(function(){
            ds_ajaxpost('plate_form');
            return false;
        });
    });
</script>